package org.reborn.model

import org.reborn.dao._
import org.reborn.model.TileLOD._
import org.reborn.math._

class World {

  private var tiles:Map[(Int,Int,TileLOD),Tile] = Map();
  
  def initWorld(playerPos:VectorF,hmDS:TerrainColumnDao) = {
    tiles = TileUtil.initVisibleTiles(playerPos,1)
    
    hmDS.getTiles(tiles.valuesIterator.toList)
  }
  
}
